//
//  BaseTabBarViewController.m
//  New
//
//  Created by dlios on 15-7-16.
//  Copyright (c) 2015年 yangTao. All rights reserved.
//

#import "BaseTabBarViewController.h"

@interface BaseTabBarViewController ()

@end

@implementation BaseTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
  
    
    NewViewController *newVC = [[NewViewController alloc]init];
    BaseNavigationViewController *NewNavi = [[BaseNavigationViewController alloc]initWithRootViewController:newVC];
    NewNavi.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"新闻" image:[UIImage imageNamed:@"iconfont-xinwen.png"] tag:10001];
    NewNavi.navigationBar.translucent = NO;
    
    
    
    PlayViewController *playVC = [[PlayViewController alloc]init];
    BaseNavigationViewController *PlayNavi = [[BaseNavigationViewController alloc]initWithRootViewController:playVC];
    PlayNavi.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"即时新闻" image:[UIImage imageNamed:@"iconfont-632zhibojian.png"] tag:10002];
    PlayNavi.navigationBar.translucent = NO;
    
    
    
    CalenderViewController *calendVC = [[CalenderViewController alloc]init];
    BaseNavigationViewController *CalendNavi = [[BaseNavigationViewController alloc]initWithRootViewController:calendVC];
    CalendNavi.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"日历" image:[UIImage imageNamed:@"iconfont-rili.png"] tag:10003];
    
    CalendNavi.navigationBar.translucent = NO;
    
    
    
    SettingViewController *settingVC = [[SettingViewController alloc]init];
    BaseNavigationViewController *settingNavi = [[BaseNavigationViewController alloc]initWithRootViewController:settingVC];
    
    settingNavi.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"设置" image:[UIImage imageNamed:@"iconfont-shezhi.png"] tag:10004];
    
    self.viewControllers = [NSArray arrayWithObjects:NewNavi,PlayNavi,CalendNavi,settingNavi, nil];
    settingNavi.navigationBar.translucent = NO;
    
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
